package com.mayikt.member.controller.res.vo;

import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

@Data
public class RegisterVo {
    @NotNull(message = "用户名不能为空")
    private String userName;

    @NotNull(message = "手机号不能为空")
    @Size(min = 11, max = 11, message = "手机号格式错误")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String mobile;

    @NotNull(message = "密码不能为空")
    private String password;

    @NotNull(message = "注册验证码不能为空")
    private String registCode;

    @NotNull(message = "图形验证码不能为空")
    private String graphicCode;
}
